<template>
  <div class="container">
    <el-input placeholder="搜索单曲、歌手" v-model="content" class="input-with-select" @change="toSearchPage">
      <el-button slot="append" icon="el-icon-search"></el-button>
    </el-input>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      content: '',
    }
  },
  methods: {
    toSearchPage() {
      this.$router.push({path: '/searchPage',query: {content: this.content}})
    }
  },
// mounted() {
// },

}
</script>


